package edu.usx.server.service;

import edu.usx.server.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.usx.server.pojo.RespBean;
import edu.usx.server.pojo.RespBean;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Usx
 * @since 2024-07-18
 */
public interface IAdminService extends IService<Admin> {

    RespBean editRole(Integer id,Integer role);
    /**
     * 实现登录功能
     * @param username
     * @param password
     * @param request
     * @return
     */
    public RespBean login(String username, String password, String code, HttpServletRequest request);

    /**
     * 获取管理员登录信息
     * @param username
     * @return
     */
    Admin getUserByUserName(String username);
}
